package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.E_CHILD_COMPANY_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.E_FUND_END_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.E_FUND_START_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.E_ID_CARD;
import static org.jsola.hr.example.EmpSocDispatchExample.E_IS_HAS_LESS;
import static org.jsola.hr.example.EmpSocDispatchExample.E_NAME;
import static org.jsola.hr.example.EmpSocDispatchExample.E_PHONE;
import static org.jsola.hr.example.EmpSocDispatchExample.E_SOC_DISPATCH_EMP_ADD_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.E_SOC_DISPATCH_EMP_LESS_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.E_SOC_END_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.E_SOC_PROG_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.E_SOC_START_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.E_STATUS;
import static org.jsola.hr.example.EmpSocDispatchExample.M_CHILD_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EmpSocDispatchExample.M_ID_CARD_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_ID_CARD_NOT_NULL;
import static org.jsola.hr.example.EmpSocDispatchExample.M_NAME_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.EmpSocDispatchExample.M_PHONE_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_PHONE_NOT_NULL;
import static org.jsola.hr.example.EmpSocDispatchExample.M_SOC_DISPATCH_EMP_ADD_ID_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_SOC_DISPATCH_EMP_LESS_ID_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.M_SOC_PROG_ID_MAX;
import static org.jsola.hr.example.EmpSocDispatchExample.N_CHILD_COMPANY_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.N_FUND_END_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.N_FUND_START_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.N_ID_CARD;
import static org.jsola.hr.example.EmpSocDispatchExample.N_IS_HAS_LESS;
import static org.jsola.hr.example.EmpSocDispatchExample.N_NAME;
import static org.jsola.hr.example.EmpSocDispatchExample.N_PHONE;
import static org.jsola.hr.example.EmpSocDispatchExample.N_SOC_DISPATCH_EMP_ADD_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.N_SOC_DISPATCH_EMP_LESS_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.N_SOC_END_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.N_SOC_PROG_ID;
import static org.jsola.hr.example.EmpSocDispatchExample.N_SOC_START_DATE;
import static org.jsola.hr.example.EmpSocDispatchExample.N_STATUS;

/**
 * 员工社保派单状态表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【员工社保派单状态表】的参数")
@Data
public class EmpSocDispatchUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_CHILD_COMPANY_ID, example = E_CHILD_COMPANY_ID)
    @Length(max = 32, message = M_CHILD_COMPANY_ID_MAX)
    private String childCompanyId;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE, required = true)
    @NotNull(message = M_PHONE_NOT_NULL)
    @Length(max = 20, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_ID_CARD, example = E_ID_CARD, required = true)
    @NotNull(message = M_ID_CARD_NOT_NULL)
    @Length(max = 32, message = M_ID_CARD_MAX)
    private String idCard;

    @ApiModelProperty(notes = N_SOC_DISPATCH_EMP_ADD_ID, example = E_SOC_DISPATCH_EMP_ADD_ID)
    @Length(max = 32, message = M_SOC_DISPATCH_EMP_ADD_ID_MAX)
    private String socDispatchEmpAddId;

    @ApiModelProperty(notes = N_SOC_PROG_ID, example = E_SOC_PROG_ID)
    @Length(max = 32, message = M_SOC_PROG_ID_MAX)
    private String socProgId;

    @ApiModelProperty(notes = N_SOC_START_DATE, example = E_SOC_START_DATE)
    private Date socStartDate;

    @ApiModelProperty(notes = N_FUND_START_DATE, example = E_FUND_START_DATE)
    private Date fundStartDate;

    @ApiModelProperty(notes = N_SOC_DISPATCH_EMP_LESS_ID, example = E_SOC_DISPATCH_EMP_LESS_ID)
    @Length(max = 32, message = M_SOC_DISPATCH_EMP_LESS_ID_MAX)
    private String socDispatchEmpLessId;

    @ApiModelProperty(notes = N_SOC_END_DATE, example = E_SOC_END_DATE)
    private Date socEndDate;

    @ApiModelProperty(notes = N_FUND_END_DATE, example = E_FUND_END_DATE)
    private Date fundEndDate;

    @ApiModelProperty(notes = N_IS_HAS_LESS, example = E_IS_HAS_LESS)
    private Boolean isHasLess;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;


}

